﻿<%@ Page Title="招聘查询" Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true"
    CodeFile="Searcha.aspx.cs" Inherits="Searcha" %>
<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="head"></asp:Content>
<asp:Content ID="MainContent" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
 工作搜索   
    <br />
    <br />
    &nbsp;搜索方式:
    <asp:DropDownList ID="ddlSearch" runat="server" Height="30px" Width="151px">
    <asp:ListItem Selected="True" Text="单位名称"></asp:ListItem>
    <asp:ListItem  Text="职位名称"></asp:ListItem>
    <asp:ListItem  Text="工作地点"></asp:ListItem>
    </asp:DropDownList>
    <br />
    <br />
    关键字：<asp:TextBox ID="txtJobSearch" runat="server"></asp:TextBox>
    <br />
    <asp:Button ID="btnJobSearch" runat="server" Text="搜索" 
        onclick="btnJobSearch_Click" />
    <hr style="width:80%" />
    <!--
    <asp:ListView ID="ListView1" runat="server">
    
    <LayoutTemplate>
        <table style="text-align:left">
        <tr runat="server" id="itemPlaceHolder" />
        </table>
        
        </LayoutTemplate>
        <ItemTemplate>
        <tr id="Tr1" runat="server">
        <td><a href='<%#String.Format("AppShow.aspx?ano={0}",Eval("ano")) %>'><%#Eval("ename") %>&nbsp;职位：<%#Eval("position") %>&nbsp;工作地点：<%#Eval("place") %></a><br /></td>
        </tr>
        </ItemTemplate>
    </asp:ListView>
    -->
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="1px" 
        CellPadding="3" style="margin-left: 0px" Width="685px" AllowPaging="True" 
        onpageindexchanging="GridView1_PageIndexChanging" Font-Size="14px">
        <Columns>
            <asp:TemplateField HeaderText="公司">
            <ItemTemplate>
            <asp:Label ID="Label1" runat="server" Text='<%#Bind("ename") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="职位">
            <ItemTemplate>
            <asp:Label ID="Label2" runat="server" Text='<%#Bind("position") %>'></asp:Label>
            </ItemTemplate>
            </asp:TemplateField>
            <asp:TemplateField HeaderText="工作地点">
            <ItemTemplate>
            <asp:Label ID="Label3" runat="server" Text='<%#Bind("place") %>'></asp:Label>
            </ItemTemplate>                        
            </asp:TemplateField>
            <asp:TemplateField>
            <ItemTemplate>
            <a href='<%#String.Format("AppShow.aspx?ano={0}",Eval("ano")) %>'>查看详情</a>
            </ItemTemplate>
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#000066" />
        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
        <RowStyle ForeColor="#000066" />
        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
        <SortedAscendingCellStyle BackColor="#F1F1F1" />
        <SortedAscendingHeaderStyle BackColor="#007DBB" />
        <SortedDescendingCellStyle BackColor="#CAC9C9" />
        <SortedDescendingHeaderStyle BackColor="#00547E" />
    </asp:GridView>
</asp:Content>